package com.shd.edanpei.common;


public class Constant {

    public static int roleType = 0;
    public static final String APP_ID = "wxbe3a6e8618b8f5bd";


    public static final String ID = "ID";
    public static final String CUSTOMER_ID = "CUSTOMER_ID";
    public static final String ORDER_ID = "ORDER_ID";
    public static final String ORDER_TYPE = "ORDER_TYPE";
    public static final String PHONE = "PHONE";
    public static final String TYPE = "TYPE";
    public static final String DATA = "DATA";
    public static final String FROM = "FROM";
    public static final String TITLE = "TITLE";
    public static final String TAG = "TAG";
    public static final String INDEX = "INDEX";
    public static final String AMOUNT = "AMOUNT";
    public static final String ADDRESS = "ADDRESS";
    public static final String USER_ID = "user_id";
    public static final String MESSAGE_ID = "message_id";
    public static final String MESSAGE_TYPE = "type";

    public static final String TEAM_ID = "team_id";


    public static final int EDIT = 1;
    public static final int SHOW = 2;

    public static final int CAR = 3;
    public static final int HOUSE = 4;


    //时间格式
    public enum Time {
        HH_MM("HH:mm"),
        YYYY_MM_DD("yyyy-MM-dd"),
        YYYY_MM_DD_HH_MM("yyyy-MM-dd  HH:mm"),
        YYYY_MM_DD_HH_MM_SS("yyyy-MM-dd  HH:mm:ss"),
        MM_DD_HH_MM("MM/dd HH:mm");

        String time;

        Time(String time) {
            this.time = time;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }
    }


    /**
     * 利率
     */
    public enum Rate {

        MIN(4.0), MAX(15), GAINS(0.1);

        double rate;

        Rate(double rate) {
            this.rate = rate;
        }

        public double getRate() {
            return rate;
        }

        public void setRate(double rate) {
            this.rate = rate;
        }
    }

    /**
     * 年龄要求
     */
    public enum Age {

        MIN(18), MAX(65), GAINS(1), OTHER(25);

        int age;

        Age(int age) {
            this.age = age;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }


    /**
     * 单位
     */
    public enum Unit {

        LI("厘"), AGE("岁"), YEAR("年"), WAN("万"), AREA("㎡"),
        WANYUAN("万元"), WANKM("万公里"), YUAN("元"), DAY("天"),
        PERCENT("%");

        String unit;

        Unit(String unit) {
            this.unit = unit;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }
    }

    //支付类型
    public enum PayType {

        deposit(1, "支付押金："), service(2, "支付服务费：");

        Integer type;
        String name;

        PayType(Integer type, String name) {
            this.type = type;
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }


        public static String getName(Integer key) {
            PayType[] values = values();
            for (PayType value : values) {
                if (value.type.equals(key)) {
                    return value.name;
                }
            }
            return "";
        }
    }

    //提现类型
    public enum withdraw {

        alipay(1), bank(2);

        int code;

        withdraw(int code) {
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }


    /*** 选择类型*/
    public static final int REPAY_WAY = 1;
    public static final int NEED_DATA = 2;
    public static final int HOUSE_NATURE = 3;


    public static final int ME_ORDER = 0;
    public static final int SHARE_ORDER = 1;

    public static final String NAME = "name";
    public static final String ID_NUMBER = "id_number";

    /*——————————————分享类型————————————————*/
    public static final String SHARE_PIC = "share_pic";//图片
    public static final String SHARE_URL = "share_url";//链接
}


